<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta http-equiv="X-UA-Compatible" content="ie=edge" />
    <title>接龙展示 - 入门</title>
    <script src="./lib/g6.js"></script>
    <script src="./lib/plugins.js"></script>
  </head>
  <body>
    <div id="mountNode"></div>
    <script>
      const data = {
        nodes: [
          {
            id: "node1",
            x: 100,
            y: 200
          },
          {
            id: "node2",
            x: 300,
            y: 200
          }
        ],
        edges: [
          {
            source: "node1",
            target: "node2"
          }
        ]
      };
      const graph = new G6.Graph({
        container: "mountNode",
        width: 500,
        height: 500
      });
      graph.read(data);     
    </script>
  </body>
</html>
